home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19990725-20000114 / 000050_news@columbia.edu _Mon Aug 23 12:18:48 1999.msg < prev    next >
Internet Message Format  |  2020-01-01  |  5KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id MAA04065
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 23 Aug 1999 12:18:48 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id MAA11169
  7.     for kermit.misc@watsun.cc.columbia.edu; Mon, 23 Aug 1999 12:04:16 -0400 (EDT)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Subject: Re: Downloading gz files using C-Kermit, Linux, & Lynx
  11. Date: 23 Aug 1999 16:04:15 GMT
  12. Organization: Columbia University
  13. Message-ID: <7prrdv$asu$1@newsmaster.cc.columbia.edu>
  14. To: kermit.misc@columbia.edu
  15.  
  16. In article <37C166B2.3F55@radium.ncsc.mil>,
  17. James S. Johnson <jjohnson@radium.ncsc.mil> wrote:
  18. : I have a perplexing problem using C-Kermit to download files.
  19. : The local public library offers a Lynx connection to the internet. I
  20. : have three communications programs that I use to connect -
  21. : Hyperterm/Win95, C-Kermit/Linux(Slackware4.0), and MS-Kermit/Win95's
  22. : DOS. Both C-Kermit and MS-Kermit come from www.columbia.edu. I log in as
  23. : guest, and I cannot change settings on the library's Lynx setup. I am
  24. : able to examine downloaded files with a binary editor.
  25. : I can download *.exe files without a problem. However, I cannot
  26. : correctly download *.gz files. Under Hyperterm and MS-Kermit, the files
  27. : have a 0x0D (hexadecimal for 13) byte inserted before every 0x0A byte.
  28. : Under C-Kermit, the files have all the 0x0D's stripped.
  29. :
  30. This indicates that C-Kermit is in text mode.
  31.  
  32. : Except for the
  33. : fact that I can download *.exe files, this appears to be a problem with
  34. : the text/binary setting. I have tried everything I can think of to make
  35. : certain the setting is on binary, but without solving the problem.
  36. It won't do any good to put C-Kermit in binary mode if Lynx is sending
  37. the file in text mode -- by the time C-Kermit gets it, it is already
  38. corrupt.
  39.  
  40. : One odd thing I have noticed - using C-Kermit I can turn the automatic
  41. : receive switch off, so I have to explicitly go to Kermit and start the
  42. : receive part of the transfer. When I do so, I see a banner that tells me
  43. : the transfer is in binary mode, but after about 10 packets are received
  44. : it switches to text mode. This is bewildering.
  45. :
  46. This means that the Kermit program on the Lynx end has sent the file in
  47. text mode and has announced that it is text in the file attribute packet,
  48. which comes after several other preliminary packets.
  49.  
  50. : It tells me that I am
  51. : indeed correctly putting Kermit into binary mode, but that (1) Lynx is
  52. : switching me back to text mode without my knowledge...
  53. :
  54. Yes.
  55.  
  56. : (2) my C-Kermit has
  57. : an automatic switch set to change me back to text mode if it sees a
  58. : particular byte sequence in the incoming data, which is coincidentally
  59. : in the *.gz files I have attempted to download...
  60. :
  61. No, C-Kermit doesn't do anything like that.  When receiving files, it
  62. follows the file type announced by the sender.  The sender always governs
  63. the transfer mode.
  64.  
  65. , or (3) the banner
  66. : doesn't actually reflect the setting of C-Kermit, but instead is just
  67. : notifying me that the file appears to be a text file.
  68. :
  69. No, the banner tells you the actual transfer mode.
  70.  
  71. : Just to make sure
  72. : (2) isn't the culprit, I've turned off all the automatic functionality I
  73. : can find, with no change in the final results - the received files under
  74. : C-Kermit still have the 0x0D's stripped. Also, HyperTerm appears to be
  75. : in text mode, too, even though I use the receive command, which the
  76. : HyperTerm documentation says is a binary transfer. So I don't believe
  77. : that C-Kermit is switching automatically, and I do believe that it is
  78. : set to binary mode when the transfer begins.
  79. I don't think HyperTerm actually makes any distinction between text and
  80. binary mode.  Old versions of MS-DOS Kermit didn't either (pre-3.0).
  81.  
  82. : Frank DaCruz' _Using C-Kermit_ has a single (as far as I can find)
  83. : reference to Lynx. It is on pg. 536, I think, around the middle of the
  84. : page, and it refers to a problem running C-Kermit under VMS when
  85. : communicating with Lynx. Unfortunately I don't know what OS the
  86. : library's Lynx runs under. Does Lynx and C-Kermit have a known problem
  87. : when it comes to downloading *.gz files, or is there something else that
  88. : I should try to get the downloads to work?
  89. I don't know a lot about Lynx, but I understand that its file-transfer 
  90. options are configured at startup.  Its startup file contains lines like:
  91.  
  92.   DOWNLOADER:Kermit binary download:/opt/bin/kermit -i -V -s %s -a %s:TRUE
  93.   DOWNLOADER:Kermit text download:/opt/bin/kermit -s %s -a %s:TRUE
  94.   UPLOADER:Kermit binary upload:/opt/bin/kermit -i -r -a %s:TRUE
  95.   UPLOADER:Kermit text upload:/opt/bin/kermit -r -a %s:TRUE
  96.   UPLOADER:Kermit text get:/opt/bin/kermit -g %s:TRUE
  97.   UPLOADER:Kermit binary get:/opt/bin/kermit -ig %s:TRUE
  98.  
  99. But this doesn't reveal anything about how it tells the difference between a
  100. text file and a binary file.  I suspect that somewhere else in its
  101. configuration, there is a list of binary filetypes (like ".exe") and text
  102. filetypes (like ".txt").  Either (a) ".gz" is erroneously listed as text,
  103. or (more likely) (b) ".gz" is not listed and the default for unlisted types
  104. is text.
  105.  
  106. - Frank